package top.rainbowecho.model.percona;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author 杨健
 * @since 2020-05-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_UserConnection")
public class UserConnection implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("userId")
    private String userId;

    @TableField("providerId")
    private String providerId;

    @TableField("providerUserId")
    private String providerUserId;

    /**
     * 等级
     */
    @TableField("rank")
    private Integer rank;

    @TableField("displayName")
    private String displayName;

    @TableField("profileUrl")
    private String profileUrl;

    @TableField("imageUrl")
    private String imageUrl;

    @TableField("accessToken")
    private String accessToken;

    @TableField("secret")
    private String secret;

    @TableField("refreshToken")
    private String refreshToken;

    /**
     * 过期时间
     */
    @TableField("expireTime")
    private Long expireTime;


}
